package com.h2cloud.excel;

/**
 * @Package: com.h2cloud.excel
 * @ClassName: ExcelHeaderMerger
 * @Author: wulongkai
 * @CreateTime: 2023/8/7 14:49
 * @Description:
 */

import com.alibaba.excel.EasyExcel;

public class ExcelReader {
    public static void main(String[] args) {
        String filePath = "/Users/a58/Downloads/nullfail.xlsx";
        ExcelHeaderMerger headerMerger = new ExcelHeaderMerger();

        // 设置表头所在行号，这里设置为第1行（索引从0开始）
        int headRowNumber = 0;
        EasyExcel.read(filePath, headerMerger).sheet().headRowNumber(headRowNumber).doRead();
    }
}

